<template>
  <div class="background">
    <div class="container">
      <div style="font-size: 50px">Vite-Doc</div>
      <div style="font-size: 46px">集成vue页面 和 MarkDown文档为一体的工具</div>
      <router-link to="/doc/readme">点我跳转Readme</router-link>
    </div>
  </div>
</template>

<script setup></script>

<style lang="scss" scoped>
  .background {
    width: 100vw;
    height: 100vh;
    background-image: linear-gradient(
      125deg,
      #2c3e50,
      #27ae60,
      #2980b9,
      #e74c3c,
      #8e44ad
    );
    background-size: 400%;
    /* 溢出隐藏  防止出现滚动条*/
    overflow: hidden;
    /* infinite 循环动画 */
    animation: 15s bgmove infinite;
  }

  /* 背景移动动画 */
  @keyframes bgmove {
    0% {
      background-position: 0% 50%;
    }
    50% {
      background-position: 100% 50%;
    }
    100% {
      background-position: 0% 50%;
    }
  }
  .container {
    position: absolute;
    width: 100%;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    font-size: 48px;
    color: #fff;
    text-align: center;
  }
  a {
    text-decoration: none;
    color: #fff;
    letter-spacing: 2px;
    &:hover {
      color: #409eff;
    }
  }
</style>
